﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace lcs.Web.gradeinfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int gdid=(Convert.ToInt32(strid));
					ShowInfo(gdid);
				}
			}
		}
		
	private void ShowInfo(int gdid)
	{
		lcs.BLL.gradeinfo bll=new lcs.BLL.gradeinfo();
		lcs.Model.gradeinfo model=bll.GetModel(gdid);
		this.lblgdid.Text=model.gdid.ToString();
		this.lblmonthsupplyid.Text=model.monthsupplyid.ToString();
		this.lblyls.Text=model.yls.ToString();
		this.lblyle.Text=model.yle.ToString();
		this.lblscs.Text=model.scs.ToString();
		this.lblsce.Text=model.sce.ToString();
		this.lblscwte1.Text=model.scwte1.ToString();
		this.lblzzs.Text=model.zzs.ToString();
		this.lblzze.Text=model.zze.ToString();
		this.lblshs.Text=model.shs.ToString();
		this.lblshe.Text=model.she.ToString();
		this.lbldhs.Text=model.dhs.ToString();
		this.lbldhe.Text=model.dhe.ToString();
		this.lblazs.Text=model.azs.ToString();
		this.lblaze.Text=model.aze.ToString();
		this.lblazsum.Text=model.azsum.ToString();
		this.lblyxgzs.Text=model.yxgzs.ToString();
		this.lblyxgze.Text=model.yxgze.ToString();
		this.lblyxbfs.Text=model.yxbfs.ToString();
		this.lblyxbfe.Text=model.yxbfe.ToString();
		this.lblyxsum.Text=model.yxsum.ToString();
		this.lblylmark.Text=model.ylmark.ToString();
		this.lblscmark.Text=model.scmark.ToString();
		this.lblzzmark.Text=model.zzmark.ToString();
		this.lblshmark.Text=model.shmark.ToString();
		this.lbldhmark.Text=model.dhmark.ToString();
		this.lblazmark.Text=model.azmark.ToString();
		this.lblyxzlmark.Text=model.yxzlmark.ToString();
		this.lblpfdatetime.Text=model.pfdatetime.ToString();

	}


    }
}
